/*
    Copyright (C) 2025 mio <stigma@disroot.org>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef ASTER_PLAYLIST_WINDOW_H
#define ASTER_PLAYLIST_WINDOW_H

#include <tqwidget.h>

class Playlist;
class TQTable;
class KMenuBar;

class PlaylistWindow : public TQWidget
{
	TQ_OBJECT

public:
	PlaylistWindow(Playlist *playlist, TQWidget *parent, const char *name = nullptr);

protected slots:
	void slotIndexChanged(int);
	void slotItemsInserted(int, int);
    void slotItemsRemoved(int, int);
    void slotRemoveCurrent();
	void slotTableDoubleClicked(int, int, int, const TQPoint&);

protected:
	void keyReleaseEvent(TQKeyEvent *) override;

private:
	Playlist *m_playlist;
	TQTable *m_table;
    KMenuBar *m_menuBar;
};

#endif /* ASTER_PLAYLIST_WINDOW_H */
